﻿using System;

namespace Budgetsch.WP7.Design
{
    using System.Collections.Generic;
    using System.Collections.ObjectModel;

    using Budgetsch.WP7.Model.DataService;
    using Budgetsch.WP7.WP7DataService;

    public class DesignIncomeDataService : IIncomeDataService
    {
        #region Implementation of IIncomeDataService

        public void GetIncomes(Action<IEnumerable<Income>, Exception> callback)
        {
            var list = new List<Income>
                {
                    new Income
                        {
                            Amount = 3000,
                            IsRecurring = false,
                            IncomeCategory = new IncomeCategory { Name = "Fizetés" },
                            Description = "BME projekt pénz",
                            IncomeComments = new ObservableCollection<IncomeComment>
                                {
                                    new IncomeComment{Comment = "Problem?:D"},
                                    new IncomeComment{Comment = "Fuuuu komment"},
                                    new IncomeComment{Comment = "Harmadik komment"},
                                    new IncomeComment{Comment = "Le derpina komment"}

                                }
                        },
                        new Income
                        {
                            Amount = 200,
                            IsRecurring = true,
                            IncomeCategory = new IncomeCategory { Name = "Adomány" },
                            Description = "A jó Istens segítse meg"
                        }
                };
            callback(list, null);

        }

        #endregion
    }
}
